package com.liyiqing.secondhandmall.memberservice.feign;

import com.liyiqing.commonservice.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//调用 product-service 远程服务
@FeignClient("product-service")
public interface ProductFeignService {

    /**
     * 根据商品主键id，获取一个商品的简要信息
     */
    @RequestMapping("/productService/productSpuInfo/selectShowProductById/{id}")
    public R selectShowProductById(@PathVariable("id") Long id);

}
